<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% load i18n %}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="/assets/css/base.css"/>

    {% block style %}
    {% endblock %}
    {% block title %}
        <title>{% trans 'Global Entrepreneurship Case Learning System' %}</title>
    {% endblock %}
    <script src="/assets/js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $("#lang").change(function () {
            $.ajax({
                url: '/i18n/changelang/',
                data: 'lang=' + $(this).val(),
                type: 'post',
                success: function (data) {
                    window.location.reload();
                }
            });
        });
        $(function () {
            $("#next").val(window.location.href);
        });
        function search() {
            $('#searchForm').submit();
        }
    </script>
    {% block js %}

    {% endblock %}
</head>
<body>
{% load i18n %}
<div class="wrap">
    {% block top %}
        <div id="header">
            <div>
                {% load langs %}
                {% language_select LANGUAGE_CODE %}
            </div>
            <div class="head_con">
                <a href="#" class="logo"><img src="/assets/images/logo.png"/></a>

                <div class="search">
                    <form action="/so/" method="post">
                        <input type="text" id="search" name="q" class="txt" value="{{ query }}"/>
                        <input type="submit" class="btn" value="{% trans 'Search' %}"/>{% csrf_token %}
                    </form>
                </div>
            </div>
            <div class="mNav">
                <ul>
                    {% block menu %}
                        <li><a href="/">{% trans 'Home' %}</a></li>
                        <li><a href="/case/search/">{% trans 'Case Query' %}</a></li>
                        <li><a href="/case/add/">{% trans 'Add Case' %}</a></li>
                        <li><a href="/case/category/">{% trans 'Category' %}</a></li>
                        <li><a href="/contact/">{% trans 'Contact Us' %}</a></li>
                    {% endblock %}
                </ul>
                <div class="r">
                    {% if user.is_authenticated %}
                        <a href="/logout/">{% trans 'Login Out' %}</a><a href="/my/home/">{{ user.username }}</a>
                    {% else %}
                        <a href="/login/" class="r02">{% trans 'Login' %}</a>
                        <a href="/signup/" class="r01">{% trans 'Register' %}</a>
                    {% endif %}

                </div>
            </div>
        </div>
    {% endblock %}
    {% block detail %}

    {% endblock %}
    <div class="push"></div>
</div>
<div id="footer">
    <dl class="foot">
        <dt>
        <ul id="socialmedia">
            <li>联系我们:</li>
            <li><a class="txweibo" href="#" target="_blank" title="">腾讯微博</a></li>
            <li><a class="sinaweibo" href="#" target="_blank" title="">新浪微博</a></li>
        </ul>
        </dt>
        <dd>
            <p>© 2010－2013 浙江大学管理学院, All Rights Reserved - 浙ICP备10204545</p>
            <!--<a href="#">关于我们</a>|<a href="#">服务条款</a>|<a href="#">联系我们</a>|<a href="#">意见反馈</a> -->
        </dd>
    </dl>
</div>
{% block other %}
{% endblock %}
</body>

</html>